package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.service.RoleService;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Lun
 * Date: 2025-07-24 18:52
 * Description: <描述>
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/role")
public class RoleController {
    private final RoleService roleService;


    @GetMapping("/role-list")
    public AjaxResult roleList() {
        return AjaxResult.success(roleService.queryRoleList());
    }
}
